Add Q_UNUSED to GDB (moer to come) to hush this class of warnings.
authorRobert Lipe <robertlipe@gpsbabel.org>
Mon, 27 Nov 2017 06:34:41 +0000 (00:34 -0600)
committerRobert Lipe <robertlipe@gpsbabel.org>
Mon, 27 Nov 2017 06:34:41 +0000 (00:34 -0600)
gdb.cc

diff --git a/gdb.cc b/gdb.cc
index 7b07060b2c60a9cbaeae57bc84aafc1f149f23af..3ee2f5392e8c941c3aecca53800b93378431e050 100644 (file)
--- a/gdb.cc
+++ b/gdb.cc
@@ -445,7 +445,9 @@ read_file_header()
   is_fatal(strcmp(buf, "MsRcf") != 0, MYNAME ": Invalid file \"%s\"!", fin->name);
 
   reclen = FREAD_i32;
+  Q_UNUSED(reclen);
   i = FREAD_STR(buf);
+  Q_UNUSED(i);
   is_fatal(buf[0] != 'D', MYNAME ": Invalid file \"%s\"!", fin->name);
 
   gdb_ver = buf[1] - 'k' + 1;
@@ -458,6 +460,7 @@ read_file_header()
 
   reclen = FREAD_i32;
   i = FREAD(buf, reclen + 1);
+  Q_UNUSED(i);
   if (global_opts.verbose_status > 0) {
     const char* name = buf+2;
     if (strstr(name, "SQA") == 0) {
@@ -756,7 +759,7 @@ read_route()
     }
   }
 
-  links = 0;
+  // links = 0;
   points = FREAD_i32;
 
 #if GDB_DEBUG